<?php

namespace Decorator;

class RenderInJson extends Decorator implements RenderInterface
{

    public function renderData()
    {
        $output = $this->wrapped->renderData();
        return json_encode($output);
    }
    

}